﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dotcor_img_detail.aspx.cs"
    Inherits="admin_allergy_dotcor_img_detail" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>图片信息 </title>
    <link href="../css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <table width="100%" height="570" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
            <td height="414" align="left" valign="top" class="rightbg">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="2" bgcolor="#A49B81">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav"
                                        style="background-repeat: repeat-y; background-position: left; padding-left: 6px;
                                        padding-top: 3px;">
                                        <asp:Label ID="headers" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="1" bgcolor="#B0C9E8">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" style="padding-left: 10px;">
                            <form id="form1" method="post" runat="server">
                            <asp:HiddenField ID="imgesId" runat="server" />
                            <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC"
                                bordercolordark="#ffffff">
                                <tr>
                                    <td width="100%" valign="top">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <th align="left" width="80%">
                                                    <asp:Label ID="infoname" runat="server"></asp:Label>
                                                </th>
                                                <th align="left">
                                                    <a href="doctor_img_list.aspx?id=<%=doctorId %>">返回
                                                    </a>
                                                </th>
                                            </tr>
                                        </table>
                                        <br>
                                        <table width="100%" border="0">
                                            <tr>
                                                <td width="13%" align="right">
                                                    <font color="#FF0000">* </font>图片名称：
                                                </td>
                                                <td width="2%">
                                                    &nbsp;
                                                </td>
                                                <td width="75%">
                                                    <asp:TextBox ID="img_name" runat="server" MaxLength="100" size="50" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="13%" align="right">
                                                    <font color="#FF0000">* </font>图片类型：
                                                </td>
                                                <td width="2%">
                                                    &nbsp;
                                                </td>
                                                <td width="75%">
                                        <table width="100%" border="0">
                                            <tr>
                                                <td width="75%">
                                                    <asp:DropDownList ID="typelist" runat="server">
                                                        <asp:ListItem Text="医生列表照片" Value="0" />
                                                        <asp:ListItem Value="1">医生栏目照片</asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                        </table>
                                            </tr>
                                            <tr>
                                                <td width="13%" align="right">
                                                    排序：
                                                </td>
                                                <td width="2%">
                                                    &nbsp;
                                                </td>
                                                <td width="75%">
                                                    <asp:TextBox ID="img_order" runat="server" MaxLength="50" size="50" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <font color="#FF0000">* </font>图片：
                                                    <asp:HiddenField ID="img_file_name" runat="server" />
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    <iframe name="ad" frameborder="0" width="100%" height="25" scrolling="no" src="doctor/upload.aspx?fildname=img_file_name">
                                                    </iframe>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <font color="#FF0000">* </font>状态：
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    <asp:RadioButtonList ID="state" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                                        <asp:ListItem Selected="True" Text="发布" Value="1" />
                                                        <asp:ListItem Text="不发布" Value="0" />
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%" border="0">
                                            <tr>
                                                <td height="54" colspan="3" align="center">
                                                    <asp:Button Text="保存" ID="sub1" OnClientClick="return subfunc()" runat="server" OnClick="Sub_click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    <script type="text/javascript">

        var o;

        function subfunc() {
            if (!isFilled(form1.img_name)) {
                return warning('img_name', '图片名称不能为空!');
            }


            if (form1.img_file_name.value == "") {
                alert("请上传图片!");
                //form1.img_file_name.focus();
                return false;
            }


            return true;
        }
        function warning(FieldName, WarningString) {
            alert(WarningString);
            eval("form1." + FieldName + ".focus();");
            return (false);
        }

    </script>

</body>
</html>
